package demo;


/**
 * @author 江岸
 * @version V1.0
 * @ClassName: demo
 * @description:
 * @date 2020/12/1011:08
 * @since V1.0
 */
public class demo  extends Groud {
    public static ThreadLocal<Integer> num = new ThreadLocal<>();
    public static int x;
    public static ThreadLocal<Integer> getNum() {
        return num;
    }

    public static void setNum(Integer number) {
        demo.num.set(number);
    }

    public static void main(String[] args) {
        Groud dog = new demo();
        dog.eat();
    }
    @Override
    public void eat() {
        System.out.println("demo吃");
    }

    public void play(){
        System.out.println("玩");
    }

    public static int fun(){
        int i = -1;
        if (i<0){
            throw new RException("不小于0");
        }else {
            return 1;
        }

    }
}
